import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

const dashboard: AppRouteModule = {
  path: '/users',
  name: 'User',
  component: LAYOUT,
  redirect: '/users/index',
  meta: {
    hideChildrenInMenu: true,
    orderNo: 1,
    title: '用户列表',
  },
  children: [
    {
      path: 'index',
      name: 'Users',
      component: () => import('@/views/users/index.vue'),
      meta: {
        title: '',
      },
    },
    {
      path: 'info',
      name: 'UserInfo',
      component: () => import('@/views/users/info.vue'),
      meta: {
        title: '用户详情',
      },
    },
  ],
};

export default dashboard;
